home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / CDEF-DeBugger 2.0 ƒ / main.c < prev    next >
C/C++ Source or Header  |  1995-05-31  |  999b  |  54 lines

  1. // application globals
  2. Boolean        gDone;
  3.  
  4. // prototypes for the application
  5. void                 InitToolbox( void );
  6. void                 InitGlobals( void );
  7.  
  8. /********************************************************************
  9.  
  10.     Init Tool Box Function
  11.  
  12. *********************************************************************/
  13. void     InitToolbox()
  14. {
  15.     InitGraf( (Ptr) &qd.thePort );
  16.     InitFonts();
  17.     InitWindows();
  18.     InitMenus();
  19.     FlushEvents( everyEvent,0 );
  20.     TEInit();
  21.     InitDialogs( 0L );
  22.     InitCursor();
  23. }
  24.  
  25. /********************************************************************
  26.  
  27.     Init Tool Box Function
  28.  
  29. *********************************************************************/
  30. void     InitGlobals( void )
  31. {
  32.     gDone = FALSE;
  33. }
  34.  
  35. /********************************************************************
  36.  
  37.     main Function
  38.  
  39. *********************************************************************/
  40. main()
  41. {
  42.     InitToolbox();
  43.     InitGlobals();
  44.     DrawTheMenuBar();
  45.     
  46.     DrawMyWindow();
  47.     
  48.     do {
  49.         EventLoop();
  50.     }while( gDone != TRUE );
  51.     
  52.     ExitToShell();
  53. }
  54.